fix(#5465): discover mint URL from org variable for per-org repos#5469
Conversation
|
🤖 Review · ❌ Terminated · Started 3:40 PM UTC · Ended 4:03 PM UTC |
Site previewPreview: https://f2f1e40f-site.fullsend-ai.workers.dev Commit: |
|
🤖 Finished Review · ❌ Failure · Started 3:40 PM UTC · Completed 4:03 PM UTC |
|
/fs-review |
|
🤖 Finished Review · ✅ Success · Started 4:09 PM UTC · Completed 4:23 PM UTC |
ReviewFindingsMedium
Low
Labels: PR modifies internal/repos/ (repos init command — part of the install workflow) |
|
/fs-fix. Rebase and fix all the review issues, both inline and in the sticky comment. Make sure to resolve all the conversations. |
|
/fs-fix - Rebase and fix all the review issues, both inline and in the sticky comment. Make sure to resolve all the conversations. |
|
🤖 Finished Fix · ✅ Success · Started 4:50 PM UTC · Completed 4:56 PM UTC |
🔧 Fix agent — iteration 1 (human-triggered)Addressed all 3 review findings: refactored error handling idiom to match codebase convention, and added org variable fallback documentation to both the repos init plan and CLI docs. Fixed (3):
Tests: passed Updated by fullsend fix agent |
- Refactor GetOrgVariable error handling in discoverRepo to use separate declaration and error checks, matching the idiom used elsewhere in the codebase (internal/cli/foreign.go, etc.) - Document org variable fallback in docs/plans/repos-init.md - Document org variable fallback in docs/cli/repos.md discovery section Addresses review feedback on #5469
- Refactor GetOrgVariable error handling in discoverRepo to use separate declaration and error checks, matching the idiom used elsewhere in the codebase (internal/cli/foreign.go, etc.) - Document org variable fallback in docs/plans/repos-init.md - Document org variable fallback in docs/cli/repos.md discovery section Addresses review feedback on #5469
cbee534 to
3b4682f
Compare
- Refactor GetOrgVariable error handling in discoverRepo to use separate declaration and error checks, matching the idiom used elsewhere in the codebase (internal/cli/foreign.go, etc.) - Document org variable fallback in docs/plans/repos-init.md - Document org variable fallback in docs/cli/repos.md discovery section Addresses review feedback on #5469
3b4682f to
53c7069
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Signed-off-by: Greg Allen <greg@fullsend.ai> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Greg Allen <gallen@redhat.com>
53c7069 to
1bbc521
Compare
|
🤖 Finished Retro · ✅ Success · Started 5:58 PM UTC · Completed 6:17 PM UTC |
Retro: PR #5469 — discover mint URL from org variable for per-org reposTimeline
AssessmentThe triage-to-code pipeline worked well: the triage agent accurately diagnosed the root cause and proposed test cases that the code agent implemented faithfully. The code change was well-scoped (119 additions across 4 files) and all review findings were documentation/style issues — no correctness bugs. The review agent's findings were useful: it caught two documentation gaps and a style inconsistency that the fix agent resolved in a single 7-minute iteration. However, the pipeline required two human interventions that could have been avoided. Existing issues with new supporting evidence
Agents repoDiscovered from run logs: Proposals filed
|
Summary
fullsend repos initfails to discover the mint URL for per-org installations whenorgCfg.DispatchSettings().MintURLis empty. This adds a fallback to check the org-level GitHub Actions variableFULLSEND_MINT_URL(set duringfullsend admin install).Related Issue
Fixes #5465
Changes
discoverRepo()(internal/repos/init.go): after checkingorgCfg.DispatchSettings().MintURL, fall back toclient.GetOrgVariable(ctx, owner, "FULLSEND_MINT_URL")when the mint URL is still emptyGetOrgVariableerrors are logged as warnings, not fatalTesting
internal/repostests passTestDiscoverRepo_PerOrg_OrgVarFallback— verifies mint URL is discovered from org variable when org config has no mint_urlTestDiscoverRepo_PerOrg_OrgConfigTakesPrecedence— verifies org config mint_url wins over org variableTestDiscoverRepo_PerOrg_OrgVarError_NonFatal— verifies GetOrgVariable errors produce a warning, not a failurego vetpassesChecklist
!for breaking changes)Closes #5465
Post-script verification
agent/5465-init-mint-url-org-var)8b2146e80c0c8d8dc54fa6fa2b4f5957fc48e602..HEAD)